﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<script runat="server">

    protected void Login(object sender, EventArgs e)
    {
        //login code here
    }
</script>
Username<asp:TextBox runat="server" ID="Username"></asp:TextBox>
<asp:Button ID="Login" runat="server" Text="Button" onunload="Login"  />//if admin
Password<asp:TextBox runat="server" ID="Password"></asp:TextBox>
<asp:Button runat="server" />

